package cn.source.system.dingding.service;

import cn.source.system.module.entity.DailyViewUser;
import cn.source.system.organization.entity.User;
import com.dingtalk.api.response.OapiV2UserGetuserinfoResponse;

import java.util.List;

public interface DingAuthService {
    /**
     * 根据用户手机号查询是否是UIOT员工
     *
     * @param userId 钉钉用户id
     * @return UIOT员工信息
     */
    DailyViewUser getUserByUserId(String userId);

    /**
     * 根据用户手机号查询是否是UIOT员工
     *
     * @param mobile 钉钉用户手机号
     * @return UIOT员工信息
     */
    DailyViewUser getUserByUsername(String mobile);

    List<DailyViewUser> exitUserInfo(String userId);

    void insertUserInfo(DailyViewUser dailyViewUser);

    DailyViewUser selectUserInfo(String userid);

    void updateUserPosition(String dingUserId, String title);
}
